﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YearlyReport.aspx.cs" Inherits="iEN.Report.YearlyReport" MaintainScrollPositionOnPostback="true" EnableEventValidation="false"%>
<%@ Register src="../UserControl/TopMenu.ascx" tagname="TopMenu" tagprefix="uc2" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <center>
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true">
        </asp:ScriptManager>
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate >
    <table  style="width: 952px">  
        <tr>
            <td><uc2:TopMenu ID="TopMenu1" runat="server" /></td>                
        </tr>
        <tr>
            <td style="background-image:url('../images/title_back.gif')" align="center" ; width="952px" >
                <asp:Label ID="Label1" runat="server" Text="用 電 年 報 表" BackColor="Transparent" Font-Names="標楷體" Font-Size="XX-Large" ForeColor="Blue"></asp:Label>
            </td>              
        </tr>
        <tr>
            <td align="center" valign="middle" width="100%">
            <asp:Panel ID="Panel3" runat="server" GroupingText="報表設定" BackColor="Transparent" 
                    Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif" Font-Size="16px" ForeColor="Black" 
                    style="width: 100%" HorizontalAlign="Left">
                <table align="left" ; width="100%">
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label4" runat="server" ForeColor="Black" Text="大　　樓：" Font-Size="Medium"></asp:Label>
                            <asp:DropDownList ID="ddlBuilding" runat="server" AutoPostBack="True" 
                                CssClass="normal" Font-Size="Medium" onselectedindexchanged="ddlBuilding_SelectedIndexChanged">
                            </asp:DropDownList> 
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label3" runat="server" ForeColor="Black" Text="樓　　層：" Font-Size="Medium"></asp:Label>
                            <asp:DropDownList ID="ddlFloor" runat="server" AutoPostBack="True" 
                                CssClass="normal" Font-Size="Medium" 
                                onselectedindexchanged="ddlFloor_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                        <asp:Label ID="Label2" runat="server" ForeColor="Black" Text="寢　　室：" Font-Size="Medium"></asp:Label>
                        <asp:DropDownList ID="ddlRoom" runat="server" CssClass="normal" Font-Size="Medium">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label5" runat="server" ForeColor="Black" Text="查詢年份：" Font-Size="Medium"></asp:Label>
                            <asp:TextBox ID="tbYear" runat="server" CssClass="normaltext"></asp:TextBox>
                            <cc1:CalendarExtender ID="tbYear_CalendarExtender" runat="server" 
                                TargetControlID="tbYear" Format="yyyy">
                            </cc1:CalendarExtender>
                            &nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnQuery" runat="server" onclick="btnQuery_Click" Text="查詢" />
                            <asp:Label ID="lblStatus" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                </table>          
            </asp:Panel>
            </td>
        </tr>
        <tr>
        <td align="center">
        <div id="Loading" style="visibility:hidden; font-size: x-large; color: red; font-family: 標楷體;">
            報表產生中…請稍候…
        </div>
        </td>
        </tr>
        <tr>
            <td align="center" valign="middle" width="100%">
            <asp:UpdatePanel ID="UpdatePanel3" runat="server" Visible="false">
                <ContentTemplate>
                <tr>
                <td align="center">
                    <asp:Panel ID="Panel4" runat="server" GroupingText="查詢結果" 
                        BackColor="Transparent" Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif" 
                        Font-Size="16px" ForeColor="Black" Height="500px">
                        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
                            Font-Size="8pt" InteractiveDeviceInfos="(集合)" WaitMessageFont-Names="Verdana" 
                            WaitMessageFont-Size="14pt" Width="100%" Height="768px">
                            <LocalReport ReportPath="Report\ReportDesign\MonthlyReport.rdlc">
                            </LocalReport>
                        </rsweb:ReportViewer>
                    </asp:Panel>
                </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
    </center>
    </form>
</body>
</html>
